package com.wjjun.test.ui.itemviewmodel

import android.annotation.SuppressLint
import android.view.View
import android.widget.TextView
import androidx.lifecycle.MutableLiveData
import com.wjjun.base.ui.viewmodel.BaseItemViewModel
import com.wjjun.app.R
import com.wjjun.base.ui.listener.IViewBinder
import com.wjjun.data.bean.TestBean1

/**
 *
 * author : wangjunjun
 * date   : 2022/6/29
 * desc   :
 */
class TestItemViewModel() : BaseItemViewModel<TestBean1>() {

    override fun getItemLayoutId(): Int {
        return R.layout.item_test_item_1
    }

    constructor(name: String) : this() {
        setData(TestBean1(name))
    }

    override fun getItemSpanSize(maxSpan: Int): Int {
        return 1
    }

    override fun onBindView(view: View) {
    }
}